<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/os.tld" prefix="os" %>
<%@ taglib uri="/WEB-INF/tld/customTaglib.tld" prefix="ct" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的订单-机票订单</title>
<base href="<%=basePath %>"/>
<link href="orderManager/member/css/login.css" rel="stylesheet" type="text/css" />
<LINK href="orderManager/member/css/header-min.css" rel=stylesheet>
<script type="text/javascript" src="orderManager/member/css/sdmenu.js">	</script>
<script type="text/javascript" src="/script/My97DatePicker/WdatePicker.js" defer="defer"></script>
</head>

<body>

<jsp:include page="/pub_head.jsp"></jsp:include>
	<!-- 中间 -->
	<div id="page-container">
 
<form action="/flight/order.do?op=list" method="post" style="margin: 0px;">
	  <div id="content" style="border: solid 1px #0183BD;"><div class="p16"><DIV class="tb-1">
  <table width="760" height="37">
	<tr>
		<td width="248" height="31" class="tdl">
		  <label>订单开始时间：</label>
		  <input id="startDate" size="15" name="startDate" class="Wdate" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d'})" value="${order.startDate }" readonly="readonly" />		</td>
		<td width="246" class="tdl"><label>订单结束时间：</label>
		  <input id="endDate" size="15" name="endDate" class="Wdate" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'startDate\')}'})" value="${order.endDate }" readonly="readonly"/></td>
		<td width="183" class="tdl"><label>状态：
            <select name="status" id="status">
					<option value="">-所有订单-</option>
					<option value="0">等待支付</option>
					<option value="-3">等待订位</option>
					<option value="1">支付完成</option>
					<option value="2">出票完成</option>
					<option value="4">退款成功</option>

				</select>
				 <script type="text/javascript">
<!--		
			document.getElementById('status').value='${order.orderStatus}';
//-->
</script>
		</label></td>
	    <td width="63" class="tdl"><button class="button2" id="J_SearchOrders" type="submit">
		搜索</button></td>
	</tr>
	<!-- add -->
</table>
      </DIV></div>
      
	  <div id="listbb">
	  <div align="center">
        <table class="tablet" cellspacing="1" cellpadding="3" border="0">
          <tr>
            <td class="tdt" height="128"><div class="bbmc" style="width: 150px">订单编号</div>
              <div class="ddbh">起飞-到达</div>
              <div class="ddbh">航班日期</div>
              <div class="ddbh">航班号</div>
			  <div class="ttbh">状态</div>
              <div class="ddbh">订单总价</div>
              <div class="ddbh">订单日期</div>
              <div class="ttbh">操作</div></td>
          </tr>
          <logic:iterate id="order" name="orders" indexId="index">
          	<tr>
            <td width="731" height="66">
			<table cellpadding="0" cellspacing="0" width="740">
                <tr>
                  <td width="133" height="58"><span class="black-text"><a href="/flight/order.do?op=getOrder&oid=${order.orderNo }"  class="ck">${order.orderNo }</a></span></td>
                  <td class="tdl" width="103"><bean:write name="order" property="depTime" format="HH:ss"/> ${order.scity}<br />
                  <bean:write name="order" property="arrTime" format="HH:ss"/> ${order.ecity}</td>
                  <td class="tdi" width="79"><bean:write name="order" property="depTime" format="yyyy-MM-dd"/></td>
                  <td class="tdi" width="94"><span class="tkcg">${order.flightNo }</span></td>
                  <td class="tdi" width="72"><span class="jg"><span class="STYLE2">
                  <os:ItinStatus type="ORDER" orderStatus="${order.orderStatus}"/>
                  </span></td>
                  <td class="tdi" width="88">&yen;<bean:write name="order" property="orderTotal" format="#"/> 
                  </td>
                  <td class="tdi" width="90"><bean:write name="order" property="bookDate" format="yyyy-MM-dd HH:mm"/></td>
                  <td class="tdi" width="69"><a class="ck" href="/flight/order.do?op=getOrder&oid=${order.orderNo }">查看订单</a></td>
                </tr>
            </table></td>
          </tr>
          </logic:iterate>
	    </table>
      </div>
	</div>
	<div id="xm" >
	  <div id="hbfk" style="display: none">
	  	<button onclick="location.href='/flight/rise.do?op=orders'">升舱信息</button>
	  	&nbsp;
	  	<button onclick="location.href='/flight/order.do?op=notApply'">申请行程单</button>
	  </div>
  	   <div class="sabrosus">
  	   	<ct:Pagination pageSize="${page.pageSize}" pageNo="${page.pageIndex}" totalRows="${page.recordCount}"/>
  	   </div> 
	  </div>
	</div>
</form>
	
	
<iframe id="frmLeft" name="frmLeft" src="/orderManager/left_buy.jsp" width="154" height="650" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
 
	
</div>
	<!-- 脚部 http://www.zemoitu.com/footer.jsp<iframe id="frmFoot" name="frmFoot" src="/footer.jsp" width="950" height="280" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>--> 
 
<div id="page-container">
<%@include file="/footer.jsp" %>
</div>




</body>
</html>
